Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of 'local://' URI Scheme Support #1381

Merged
merged 5 commits into from
Oct 4, 2023

Conversation

glesperance
Copy link
Contributor

@glesperance glesperance changed the title Added support for local:// Implementation of 'local://' URI Scheme Support Sep 29, 2023
@martindurant
Copy link
Member

I agree this is useful.

This line should also be updated to be the tuple "file", "local" to make sure we normalise URLs correctly.

@glesperance
Copy link
Contributor Author

@martindurant: updated as suggested (e8c7253)

@glesperance
Copy link
Contributor Author

@martindurant: updated failing tests

@ap--
Copy link
Contributor

ap-- commented Sep 30, 2023

_strip_protocol should be updated too:

@classmethod
def _strip_protocol(cls, path):
path = stringify_path(path)
if path.startswith("file://"):
path = path[7:]
elif path.startswith("file:"):
path = path[5:]
return make_path_posix(path).rstrip("/") or cls.root_marker

@glesperance
Copy link
Contributor Author

_strip_protocol should be updated too:

@classmethod
def _strip_protocol(cls, path):
path = stringify_path(path)
if path.startswith("file://"):
path = path[7:]
elif path.startswith("file:"):
path = path[5:]
return make_path_posix(path).rstrip("/") or cls.root_marker

Thanks. Fixed it.

@glesperance
Copy link
Contributor Author

@martindurant seems like I had the wrong syntax for the tuple assertion -- this was also fixed. Hopefully we're good to go now.

@martindurant martindurant merged commit 7036b5a into fsspec:master Oct 4, 2023
11 checks passed
@glesperance glesperance deleted the feat/ray-local-paths branch October 10, 2023 21:29
gtopper added a commit to gtopper/mlrun that referenced this pull request Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants